import $ from 'jquery'
import 'bootstrap'

import 'bootstrap/dist/css/bootstrap.css'
import 'styles/main.scss'
import 'styles/pages/loan.scss'
import 'styles/pages/registration.scss'

$('.J_exemplar').on('show.bs.modal', e => {
  const relatedTarget = e.relatedTarget
  const source = relatedTarget.getAttribute('data-source')
  if (source) {
    $('.J_example', e.target).attr('src', source)
  } else {
    e.preventDefault()
  }
})
